x86/emul: Implement the STAC and CLAC instructions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Oct 2016 15:55:26 +0000 (16:55 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Dec 2016 09:58:33 +0000 (09:58 +0000)
commita29e10dd0b5f0b785e6389d71dc9847a51307246
tree01ea613d0ce6b9b21dca8896910420c1b56a39ce
parent9d71e02e8420b5d4a48d92446a1edbff498ee1c6
x86/emul: Implement the STAC and CLAC instructions

Note that unlike most privilege restricted instructions, STAC and CLAC are
documented to raise #UD rather than #GP[0], and indeed do so.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_emulate/x86_emulate.c